import request from '@/utils/request'

// 查询帮扶预约列表
export function listHelpstudent(query) {
  return request({
    url: '/help/helpstudent/list',
    method: 'get',
    params: query
  })
}

// 查询帮扶预约详细
export function getHelpstudent(id) {
  return request({
    url: '/help/helpstudent/' + id,
    method: 'get'
  })
}

// 新增帮扶预约
export function addHelpstudent(data) {
  return request({
    url: '/help/helpstudent',
    method: 'post',
    data: data
  })
}

// 修改帮扶预约
export function updateHelpstudent(data) {
  return request({
    url: '/help/helpstudent',
    method: 'put',
    data: data
  })
}

// 删除帮扶预约
export function delHelpstudent(id) {
  return request({
    url: '/help/helpstudent/' + id,
    method: 'delete'
  })
}
